import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.print("请输入一个数:");
        int num = 0;
        int n = scan.nextInt();
        while(n!=0) {
            System.out.print(n%10+" ");
            n = n / 10;
        }

    }

}
